package org.dromara.pay.domain.bo;

import org.dromara.pay.domain.PayAlipayOrdersSign;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.io.Serial;
import java.io.Serializable;

/**
 * 支付宝订单信息业务对象 pay_alipay_orders_sign
 *
 * @author yf
 * @date 2024-07-22
 */
@Data
@AutoMapper(target = PayAlipayOrdersSign.class, reverseConvertGenerate = false)
public class PayAlipayOrdersSignBo extends BaseEntity {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 支付订单验签id
     */
    @NotBlank(message = "支付订单验签id不能为空", groups = {EditGroup.class})
    private String alipayId;
    /**
     * 商户订单号
     */
    private Integer activityOrderId;
    /**
     * 支付宝交易凭证号
     */
    private String alipayNo;
    /**
     * 交易名称
     */
    private String subject;
    /**
     * 交易状态
     */
    private String tradeStatus;
    /**
     * 交易金额
     */
    private BigDecimal totalAmount;
    /**
     * 买家在支付宝的唯一ID
     */
    private String buyer;
    /**
     * 买家付款时间
     */
    private Date gmtPayment;
    /**
     * 买家付款金额
     */
    private BigDecimal buyerPayAmount;
    /**
     * 支付时间
     */
    private Date payTime;
}
